package com.chenfan.mcn.model;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author lizhejin
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class McnPage<T> extends Page<T> {

    private long pageNum = 1L;

    private long pageSize = 10L;

    @Override
    public long getSize() {
        super.setSize(this.pageSize);
        return super.getSize();
    }

    @Override
    public long getCurrent() {
        super.setCurrent(this.pageNum);
        return super.getCurrent();
    }
}
